+Thu Jun 10 00:36:15 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcalendar.c (gtk_calendar_main_button): Start
+ the drag before focusing the selected.day.
+ * gtk/gtkcalendar.c (gtk_calendar_state_changed): Stop
+ a beginning drag if the widget becomes insensitive.
+
Thu Jun 10 00:09:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c (gtk_calendar_button_press): Start
+Thu Jun 10 00:36:15 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcalendar.c (gtk_calendar_main_button): Start
+ the drag before focusing the selected.day.
+ * gtk/gtkcalendar.c (gtk_calendar_state_changed): Stop
+ a beginning drag if the widget becomes insensitive.
+
Thu Jun 10 00:09:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c (gtk_calendar_button_press): Start
+Thu Jun 10 00:36:15 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcalendar.c (gtk_calendar_main_button): Start
+ the drag before focusing the selected.day.
+ * gtk/gtkcalendar.c (gtk_calendar_state_changed): Stop
+ a beginning drag if the widget becomes insensitive.
+
Thu Jun 10 00:09:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c (gtk_calendar_button_press): Start
+Thu Jun 10 00:36:15 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcalendar.c (gtk_calendar_main_button): Start
+ the drag before focusing the selected.day.
+ * gtk/gtkcalendar.c (gtk_calendar_state_changed): Stop
+ a beginning drag if the widget becomes insensitive.
+
Thu Jun 10 00:09:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c (gtk_calendar_button_press): Start
if (!GTK_WIDGET_HAS_FOCUS (widget))
gtk_widget_grab_focus (widget);
- gtk_calendar_select_and_focus_day (calendar, day);
-
private_data->in_drag = 1;
private_data->drag_start_x = x;
private_data->drag_start_y = y;
+
+ gtk_calendar_select_and_focus_day (calendar, day);
}
else if (event->type == GDK_2BUTTON_PRESS)
{
private_data = GTK_CALENDAR_PRIVATE_DATA (widget);
if (!GTK_WIDGET_IS_SENSITIVE (widget))
- stop_spinning (widget);
+ {
+ private_data->in_drag = 0;
+ stop_spinning (widget);
+ }
for (i = 0; i < 4; i++)
if (GTK_WIDGET_IS_SENSITIVE (widget))